package com.controller;

import com.annotation.LoginUser;
import com.dao.SysUser;
import com.utils.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: madSong
 * @since: 2024/5/10
 * @description:
 */
@RestController
@RequestMapping("/sys-user")
public class SysUserController {



    /**
        @author madSong
        @since 2024/5/10
        @description  查询自己的所有权限
    */
    @PostMapping("/myPermissions")
    public Result myPermissions(@LoginUser SysUser sysUser){
        Integer admin = sysUser.getAdmin();
        Long id = sysUser.getId();
        if(1 == admin){

        }else {

        }
        return Result.success();
    }
}
